package com.alisoft.nano.seda;

/**
 * The event handler to handle the event.
 * It is implemented by the application.
 * 
 * @author zhimin.chenzm, anping.yinap
 *
 * @param <T> work unit
 */
public interface EventHandler<T> {
    /**
     * The process method should not throw any exception to the framework. 
     * (All the exception throw by this method will be discarded by the stage) 
     * It should catch the exceptions and set it as Event.exception
     * 
     * 
     * @param event
     */
	void process(Event<T> event);
}
